var activity = {
  typeId: '',
  init: function (option) {
    for (var attr in option) {
      this[attr] = option[attr]
    }
    this.renderBg()
  },
  renderBg: function () {
    try {
      var res = getTypeDetailInfo(this.typeId)
      var picture = res[0].typePicture[0].picPath3
      $("#main").css("background-image", "url(" + picture + ")")
    } catch (err) {
      console.log('logo setLogo error')
    }
  }
}